package com.chalk.service.impl;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.chalk.common.util.Result;
import com.chalk.dao.CollectionDao;
import com.chalk.model.Collection;
import com.chalk.service.CollectionService;
import com.chalk.service.VenueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author glq
 * @since 2020-12-17
 */

@Service
public class CollectionServiceImpl extends ServiceImpl<CollectionDao, Collection> implements CollectionService {

    @Autowired
    VenueService venueService;

    @Override
    public int addCollection(Collection entity) {
        return baseMapper.insert(entity);
    }

    @Override
    public int updateCollection(Collection entity) {
        return baseMapper.updateById(entity);
    }


    @Override
    public int deleteCollection(Integer id) {
        return baseMapper.deleteById(id);
    }


}
